package com.dks.mapper;


import java.util.List;

import com.dks.models.publicCompoment.PublicAttention;
import com.dks.vo.publicCompoment.PublicAttentionUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PublicAttentionMapper{

    Integer addAttention(PublicAttention publicAttention);

    Integer removeAttention(PublicAttention publicAttention);

    List<PublicAttentionUserVo> getMeAttention(@Param("userId")long userId, @Param("attentionEntityType")String attentionEntityType);

    List<PublicAttentionUserVo> getAttentionMe(@Param("userId")long userId, @Param("userType")String userType, @Param("attentionEntityType")String attentionEntityType);

    //查询关注状态
    PublicAttention select(@Param("attentionEntityType")String attentionEntityType, @Param("attentionEntityId")long attentionEntityId, @Param("userId")long userId);
}
